<include file="Public/header" />

<div class="am-cf admin-main">
  <include file="Public/sidebar" />

  <!-- content start -->
  <div class="admin-content">

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">首页</strong> / <small>栏目列表</small></div>
    </div>
	
    <div class="am-g">
      <div class="am-u-sm-12">
      	<p class="am-fr"><a class="am-btn am-btn-xs am-btn-success" href="{:U('Auth/addCate')}"><span class="am-icon-plus"></span> 添加栏目</a></p>
        <table class="am-table am-table-bd am-table-striped admin-content-table">
          <thead>
          <tr>
            <th>ID</th><th>名称</th><th>操作</th>
          </tr>
          </thead>
          <tbody>
          <foreach name="grouList" item="v">
	          <tr>
	          	<td>{$v.id}</td>
	          	<td>{$v.title}</td> 
	            <td>
	              <a href="{:U('Auth/setRule', array('id'=>$v[id]))}" title="分配权限" class="am-btn am-btn-xs am-btn-primary"><span class="am-icon-check"></span></a>
	              <a href="{:U('Auth/updGroup', array('id'=>$v[id]))}" title="成员管理" class="am-btn am-btn-xs am-btn-secondary"><span class="am-icon-pencil"></span></a>
                  <a href="{:U('Auth/delGroup', array('id'=>$v[id]))}" title="删除用户组" class="am-btn am-btn-xs am-btn-warning"><span class="am-icon-times"></span></a>
	            </td>
	          </tr>
          </foreach>
          </tbody>
        </table>
      </div>
    </div>

  </div>
  <!-- content end -->

</div>

<a class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<footer>
  <hr>
  <p class="am-padding-left">© 2015 AllMobilize, Inc. Licensed under MIT license.</p>
</footer>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/polyfill/rem.min.js"></script>
<script src="assets/js/polyfill/respond.min.js"></script>
<script src="assets/js/amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="__PUBLIC__/assets/js/jquery.min.js"></script>
<script src="__PUBLIC__/assets/js/amazeui.min.js"></script>
<!--<![endif]-->
<script src="__PUBLIC__/assets/js/app.js"></script>
</body>
</html>